Optimal. Leaf size=87 \[ -\frac {d \left (a+b \sec ^{-1}(c x)\right )}{x}+e x \left (a+b \sec ^{-1}(c x)\right )+\frac {b c d \sqrt {c^2 x^2-1}}{\sqrt {c^2 x^2}}-\frac {b e x \tanh ^{-1}\left (\frac {c x}{\sqrt {c^2 x^2-1}}\right )}{\sqrt {c^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 87, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 5, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.263, Rules used = {14, 5238, 451, 217, 206} \[ -\frac {d \left (a+b \sec ^{-1}(c x)\right )}{x}+e x \left (a+b \sec ^{-1}(c x)\right )+\frac {b c d \sqrt {c^2 x^2-1}}{\sqrt {c^2 x^2}}-\frac {b e x \tanh ^{-1}\left (\frac {c x}{\sqrt {c^2 x^2-1}}\right )}{\sqrt {c^2 x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 206
Rule 217
Rule 451
Rule 5238
Rubi steps
\begin {align*} \int \frac {\left (d+e x^2\right ) \left (a+b \sec ^{-1}(c x)\right )}{x^2} \, dx &=-\frac {d \left (a+b \sec ^{-1}(c x)\right )}{x}+e x \left (a+b \sec ^{-1}(c x)\right )-\frac {(b c x) \int \frac {-d+e x^2}{x^2 \sqrt {-1+c^2 x^2}} \, dx}{\sqrt {c^2 x^2}}\\ &=\frac {b c d \sqrt {-1+c^2 x^2}}{\sqrt {c^2 x^2}}-\frac {d \left (a+b \sec ^{-1}(c x)\right )}{x}+e x \left (a+b \sec ^{-1}(c x)\right )-\frac {(b c e x) \int \frac {1}{\sqrt {-1+c^2 x^2}} \, dx}{\sqrt {c^2 x^2}}\\ &=\frac {b c d \sqrt {-1+c^2 x^2}}{\sqrt {c^2 x^2}}-\frac {d \left (a+b \sec ^{-1}(c x)\right )}{x}+e x \left (a+b \sec ^{-1}(c x)\right )-\frac {(b c e x) \operatorname {Subst}\left (\int \frac {1}{1-c^2 x^2} \, dx,x,\frac {x}{\sqrt {-1+c^2 x^2}}\right )}{\sqrt {c^2 x^2}}\\ &=\frac {b c d \sqrt {-1+c^2 x^2}}{\sqrt {c^2 x^2}}-\frac {d \left (a+b \sec ^{-1}(c x)\right )}{x}+e x \left (a+b \sec ^{-1}(c x)\right )-\frac {b e x \tanh ^{-1}\left (\frac {c x}{\sqrt {-1+c^2 x^2}}\right )}{\sqrt {c^2 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.12, size = 104, normalized size = 1.20 \[ -\frac {a d}{x}+a e x+b c d \sqrt {\frac {c^2 x^2-1}{c^2 x^2}}-\frac {b e x \sqrt {1-\frac {1}{c^2 x^2}} \tanh ^{-1}\left (\frac {c x}{\sqrt {c^2 x^2-1}}\right )}{\sqrt {c^2 x^2-1}}-\frac {b d \sec ^{-1}(c x)}{x}+b e x \sec ^{-1}(c x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.45, size = 123, normalized size = 1.41 \[ \frac {b c^{2} d x + a c e x^{2} + b e x \log \left (-c x + \sqrt {c^{2} x^{2} - 1}\right ) + \sqrt {c^{2} x^{2} - 1} b c d - a c d - 2 \, {\left (b c d - b c e\right )} x \arctan \left (-c x + \sqrt {c^{2} x^{2} - 1}\right ) + {\left (b c e x^{2} - b c d + {\left (b c d - b c e\right )} x\right )} \operatorname {arcsec}\left (c x\right )}{c x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.62, size = 1098, normalized size = 12.62 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 137, normalized size = 1.57 \[ a e x -\frac {a d}{x}+b \,\mathrm {arcsec}\left (c x \right ) e x -\frac {b \,\mathrm {arcsec}\left (c x \right ) d}{x}+\frac {c b d}{\sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}-\frac {b d}{c \,x^{2} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}-\frac {b \sqrt {c^{2} x^{2}-1}\, e \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{c^{2} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.32, size = 89, normalized size = 1.02 \[ {\left (c \sqrt {-\frac {1}{c^{2} x^{2}} + 1} - \frac {\operatorname {arcsec}\left (c x\right )}{x}\right )} b d + a e x + \frac {{\left (2 \, c x \operatorname {arcsec}\left (c x\right ) - \log \left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right ) + \log \left (-\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )\right )} b e}{2 \, c} - \frac {a d}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.79, size = 72, normalized size = 0.83 \[ a\,e\,x-\frac {d\,\left (a+b\,\mathrm {acos}\left (\frac {1}{c\,x}\right )-b\,c\,x\,\sqrt {1-\frac {1}{c^2\,x^2}}\right )}{x}-\frac {b\,e\,\mathrm {atanh}\left (\frac {1}{\sqrt {1-\frac {1}{c^2\,x^2}}}\right )}{c}+b\,e\,x\,\mathrm {acos}\left (\frac {1}{c\,x}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 5.11, size = 73, normalized size = 0.84 \[ - \frac {a d}{x} + a e x + b c d \sqrt {1 - \frac {1}{c^{2} x^{2}}} - \frac {b d \operatorname {asec}{\left (c x \right )}}{x} + b e x \operatorname {asec}{\left (c x \right )} - \frac {b e \left (\begin {cases} \operatorname {acosh}{\left (c x \right )} & \text {for}\: \left |{c^{2} x^{2}}\right | > 1 \\- i \operatorname {asin}{\left (c x \right )} & \text {otherwise} \end {cases}\right )}{c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________